#include<stdio.h>

#define N 20

int main(int argc, char *argv[])
{	
	int arr[10] = {1,2,3,4,5,6,7,8,9,10};

	int *p = arr;// p指向arr[0]的地址

	printf("%d ", *p++);//输出*p：1 ，p指向arr[1]
	printf("%d ", *++p);//p指向arr[2],输出*p : 3
	printf("%d ", (*p)++);//输出*p:3 ,*p指向的arr[2] ++ 变为4
	printf("%d ", ++(*p));//输出arr[2] 5 ,指向arr[2]
	//1 3 3 5
	p++;
	*p = 999;

	for(int i = 0; i < 10; i++){
		printf("%d ", arr[i]);
	}
	// 1 2 5 999 5 6 7 8 9 10
	printf("\n");
	return 0;
}


